package net.wangds.repository;

import org.springframework.data.annotation.Id;

/**
 * MongoDB中保存的文档.
 */
@SuppressWarnings("unused")
public abstract class AbstractDocument implements Document {

    //
    // Fields
    //
    @Id
    private String id;
    /**
     * 新建用户Id.
     */
    private String createUid;
    /**
     * 创建时间.
     */
    private Long createTm=System.currentTimeMillis();
    /**
     * 最后修改人.
     */
    private String lastestModifyUid;
    /**
     * 最后修改时间.
     */
    private Long lastestModifyTm=System.currentTimeMillis();

    /**
     * 是否是测试数据
     *
     * T-测试数据
     * 空-正常数据     */
    private String test;    /**

     * 是否是标记为删除的数据
     *
     * D-删除
     * 空-正常     */
    private String deleted;

    //
    // Constructors
    //
    public AbstractDocument () { }

    //
    // Methods
    //


    //
    // Accessor methods
    //

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateUid() {
        return createUid;
    }

    public void setCreateUid(String createUid) {
        this.createUid = createUid;
    }

    public Long getCreateTm() {
        return createTm;
    }

    public void setCreateTm(Long createTm) {
        this.createTm = createTm;
    }

    public String getLastestModifyUid() {
        return lastestModifyUid;
    }

    public void setLastestModifyUid(String lastestModifyUid) {
        this.lastestModifyUid = lastestModifyUid;
    }

    public Long getLastestModifyTm() {
        return lastestModifyTm;
    }

    public void setLastestModifyTm(Long lastestModifyTm) {
        this.lastestModifyTm = lastestModifyTm;
    }

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }


    //
    // Other methods
    //

}
